import Vue from 'vue'
import Vuex from 'vuex'
import {IMG_SHOW} from '../constants'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    themcolor:'#1c67ff',
    baseImgUrl:IMG_SHOW,
    personInfo:{
      "name:":"",
      "zmattid": "",//身份认证状态
      "fmattid": "",
      "videoattid": "",//1身份证  证件类型
    },
    carInfo:{
      xszZmAttid:'',//行驶证正本
      xszZmAOwner:'',//姓名
      xszFmAttid:'',//行驶证副本
      xszZmANum:'',//车牌号
      jqxAttid:'',//交强险
      syxAttid:'',//商业险
      monthMoney:10000,//月租金
      jsType:'M',//结算周期

      engineNo: "",//发动机号码
      vinNo: "",//车辆识别代号
    },
    yyzzInfo:{},
  },
  // getter: {
  //   doneTodos: (state, getters) => {
  //     return state.todos.filter(todo => todo.done)
  //   }
  // },
  mutations: {
    changeThem (state, payload) {
      state.themcolor = payload
    },
    setPersonInfo (state,Object) {
      //5.修改state中的数据
      state.personInfo= Object
    },
    setCarInfo (state,Object) {
      state.carInfo= Object
    },
    setYyzzInfoo (state,Object) {
      state.yyzzInfo= Object
    }
  }

})
export default store
